#!/bin/bash

#red="\033[0;40;31m"
#green="\033[0;40;32m"
#yellow="\033[0;40;33m"
#blue="\033[0;40;34m"
#white="\033[0;40;37m"
#normal="\033[0m"
red=""
green=""
yellow=""
blue=""
while=""
normal=""

let min=60

MSG="\
$blue+==================================================$normal\n\
$blue| $normal Knock! Knock! ... Who is using [$green`hostname`$normal]?\n\
$blue| $normal This server is reserved by$yellow dahai.zhao@hp.com$normal\n\
$blue| $normal Please$red release$normal it or$red ask him$normal for your usage\n\
$blue+==================================================$normal\
"
while [ 1 ];
do
    echo -e $MSG"\n\tTake action in $red($min)$normal minutes\n" | wall
    sleep 60
    let min=$min-1
    if [ $min -lt 1 ]
    then
        exit 0
    fi
done

